package com.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author wsx
 * @date 2018-08-28
 */
@Component
@ConfigurationProperties(prefix = "my1")
public class MyProperties {
	private int age;
	private String name;

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "MyProperties1{" + "age=" + age + ", name='" + name + '\'' + '}';
	}
}
